package com.qf.openapi.web.master.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegistVo {

        private String username;
        private String password;
        private String sex;
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        //只有传来json的时候 它才会被用到
       // @JsonFormat(pattern="yyyy-MM-dd ",timezone = "GMT+8")  //日期格式化  timezone = "GMT+8"（这个不要忽略）设置时区
        private Date date;
        private MultipartFile photo;
        private  String captchar;
}
